package com.fanjun.learning.multithread.Thread_Specific_Storage_Pattern;

/**
 * Created by fanjun on 16/10/17.
 */
public class ClientThread extends Thread {

    public ClientThread(String name){
        super(name);
    }

    @Override
    public void run(){
        System.out.println(getName() + "begin");
        Log.printLog(getName() + "begin");
        for (int i = 0; i < 10;i++){
            Log.printLog("i = " + i);
            try {
                sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println(getName() + "end");
        Log.printLog(getName() + "end");
        Log.close();

    }
}
